const mongoose=require('mongoose');

mongoose.connect('mongodb://yang:1794644493@47.116.116.42:27017/Item')

let con = mongoose.connection

con.on('open', () => {
    console.log('数据库连接成功');
})

con.on('error', (err) => {
    console.log('数据库连接失败', err);
})

module.exports = mongoose
